package edu.sctu.zcy.month201506.day20150611;

import java.io.File;

/**
 * Created by user24 on 2015/6/11.
 */
public class ShowAll {

    public ShowAll(){

        show("D:\\ZCY");
    }

    public void show(String directory){

        File file = new File(directory);

        if(file.isDirectory()){

            String[]  strings = file.list();
            for (int i = 0; i < strings.length; i++) {

                System.out.println(directory+"\\"+strings[i]);
            }
        }
    }

    public static void main(String[] args) {
        new ShowAll();
    }
}
